package com.zhang.modules.auth.eneity;

import com.zhang.common.jpa.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;

@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@Entity(name = "SysAclMenu")
public class Menu extends BaseEntity {

    @Column(name = "name", nullable = false, length = 64)
    private String name;

    @Column(name = "title", nullable = false, length = 128)
    private String title;

    @Column(name = "pid", length = 20)
    private String pid;

    @Column(name = "permission_id", length = 20)
    private String permissionId;

    @Column(name = "type", nullable = false, length = 32)
    private String type;

    @Column(name = "path", length = 128)
    private String path;

    @Column(name = "icon", length = 128)
    private String icon;

    @Column(name = "sort", length = 32)
    private String sort;

    @Column(name = "external", nullable = false)
    private Boolean external = false;

    @Column(name = "status", nullable = false, length = 32)
    private String status;

    @Column(name = "component", nullable = false, length = 256)
    private String component;

}